<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>失业人员动态信息管理</title>
<script type="text/javascript" src="resources/js/jobless/joblessInfo.js"></script>
<link rel="stylesheet" type="text/css" href="resources/css/labor/laborInfoManage.css" />
</head>
<body>
    <div id="pageContent">
        <div class="easyui-layout" data-options="fit: true">
            <div class="easyui-panel" title="登记 (转移登记)失业人员动态管理情况汇总表" data-options="region:'center', border:false">
                <div id="joblessInfo_toolbar" class="app-query-panel">
                    <table>
                        <tr>
                            <td colspan="8">
                                <label>街道</label>
                                <input id="JoblessSearch_street" name="" class="easyui-combobox" />
                                <label>社区</label>
                                <input id="JoblessSearch_community" name="" class="easyui-combobox" />
                                <label>姓名</label>
                                <input id="JoblessSearch_name" name="" class="easyui-textbox" style="width:9%;"/>
                                <label>身份证号</label>
                                <input id="JoblessSearch_idCard" name="" class="easyui-textbox" style="width:16%;"/>
                                <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="joblessSearch()"><i  class="fa fa-search"></i>查询</a>
                            </td>
                        </tr>
                        <tr>
                            <td>
                               <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="addJobless()"><i  class="fa fa-plus"></i>添加</a>
                               <!-- <a href="#" id="importJoblessButton" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="$('#importJoblessInfo').window('open')"><i  class="fa fa-file"></i>导入</a> -->
                               <a href="#" id="importJoblessButton" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="()"><i  class="fa fa-file"></i>导入</a>
                               <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="exportJoblessInfoList()"><i  class="fa fa-file-o"></i>导出</a>
                               <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="getJoblessInfo()"><i  class="fa fa-pencil-square-o"></i>修改</a>
                               <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="deleteJobless()"><i  class="fa fa-trash"></i>删除</a>
                               <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="serviceStaff()"><i  class="fa fa-list"></i>服务台账</a>
                            </td>
                        </tr>
                    </table>
                </div>
                <table id="joblessInfoGrid" data-options="fit:true, border:false, toolbar:'#joblessInfo_toolbar'"></table>
            </div>
        </div>
        <div id="addJobless" class="easyui-window" title="失业人员信息添加" data-options="collapsible:false,minimizable:false,maximizable:false,resizable:false,closed:true" style="width:420px;height:490px;padding:10px;">
            <div class="pageContent-list">
                <form id="addJoblessForm" method="post">
                    <div>
                        <label>姓名：</label>
                        <input id="joblessAdd_name" name="name" class="easyui-textbox" data-options="required:true, missingMessage:'姓名信息必填'" />
                    </div>
                    <div>
                        <label>性别：</label>
                        <input id="joblessAdd_dict_gender" name="sex" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>身份证号：</label>
                        <input id="joblessAdd_idcard" name="idcard" class="easyui-textbox easyui-validatebox" data-options="required:true, missingMessage:'身份证号必填', validType:['idValid','formatValid']" />
                    </div>
                    <div>
                        <label>学历：</label>
                        <input id="joblessAdd_dict_education" name="education" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>联系方式：</label>
                        <!-- <input id="joblessAdd_phone" name="phone" class="easyui-textbox easyui-validatebox" data-options="validType:'phoneRex'" /> -->
                        <input id="joblessAdd_phone" name="phone" class="easyui-textbox"/>
                    </div>
                    <div>
                        <label>失业时间：</label>
                        <input id="joblessAdd_unemploymentdate" name="unemploymentdate" class="easyui-datebox" data-options="required:true,missingMessage:'失业时间必填'" />
                    </div>
                    <div>
                        <label>择业意向：</label>
                        <input id="joblessAdd_intention" name="intention" class="easyui-textbox" />
                    </div>
                    <div>
                        <label>是否困难人员：</label>
                        <input id="joblessAdd_dict_knry" name="knry" class="easyui-combobox" value='0'/>
                    </div>
                    <div>
                        <label>转困难人员时间：</label>
                        <input id="joblessAdd_knrydate" name="knrydate" class="easyui-datebox" />
                    </div>
                    <div>
                        <label>减少原因：</label>
                        <input id="joblessAdd_dict_removereason" name="removereason" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>减少时间：</label>
                        <input id="joblessAdd_removedate" name="removedate" class="easyui-datebox" />
                    </div>
                    <div>
                        <label>街道：</label>
                        <input id="joblessAdd_dict_street" name="street" class="easyui-combobox" /> 
                    </div>
                    <div>
                        <label>社区：</label>
                        <input id="joblessAdd_dict_community" name="community" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>备注：</label>
                        <input id="joblessAdd_remark" name="remark" class="easyui-textbox" />
                    </div>
                    <div class="btn-link">
                        <a href="#" class="easyui-linkbutton btn-link" style="width:80px;height:30px;"  onclick="insertJobless()">保存</a>
                    </div>              
                </form>
            </div>
        </div>
        <div id="modifyJobless" class="easyui-window" title="失业人员信息更新" data-options="collapsible:false,minimizable:false,maximizable:false,resizable:false,closed:true" style="width:420px;height:490px;padding:10px;">
            <div class="pageContent-list">
                <form id="modifyJoblessForm" method="post">
                    <input type="hidden" id="unemployedId" name="unemployedId" />
                    <div>
                        <label>姓名：</label>
                        <input id="joblessUpdate_name" name="name" class="easyui-textbox" data-options="required:true, missingMessage:'姓名信息必填'" />
                    </div>
                    <div>
                        <label>性别：</label>
                        <input id="joblessUpdate_dict_gender" name="sex" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>身份证号：</label>
                        <input id="joblessUpdate_idcard" name="idcard" class="easyui-textbox easyui-validatebox" data-options="required:true, missingMessage:'身份证号必填', validType:['idValid','formatValid']" />
                    </div>
                    <div>
                        <label>学历：</label>
                        <input id="joblessUpdate_dict_education" name="education" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>联系方式：</label>
                        <!-- <input id="joblessUpdate_phone" name="phone" class="easyui-textbox easyui-validatebox" data-options="validType:'phoneRex'" /> -->
                        <input id="joblessUpdate_phone" name="phone" class="easyui-textbox" />
                    </div>
                    <div>
                        <label>失业时间：</label>
                        <input id="joblessUpdate_unemploymentdate" name="unemploymentdate" class="easyui-datebox" data-options="required:true,missingMessage:'失业时间必填'" />
                    </div>
                    <div>
                        <label>择业意向：</label>
                        <input id="joblessUpdate_intention" name="intention" class="easyui-textbox" />
                    </div>
                    <div>
                        <label>是否困难人员：</label>
                        <input id="joblessUpdate_dict_knry" name="knry" class="easyui-combobox" value='0'/>
                    </div>
                    <div>
                        <label>转困难人员时间：</label>
                        <input id="joblessUpdate_knrydate" name="knrydate" class="easyui-datebox" />
                    </div>
                    <div>
                        <label>减少原因：</label>
                        <input id="joblessUpdate_dict_removereason" name="removereason" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>减少时间：</label>
                        <input id="joblessUpdate_removedate" name="removedate" class="easyui-datebox" />
                    </div>
                    <div>
                        <label>街道：</label>
                        <input id="joblessUpdate_dict_street" name="street" class="easyui-combobox" />  
                    </div>
                    <div>
                        <label>社区：</label>
                        <input id="joblessUpdate_dict_community" name="community" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>备注：</label>
                        <input id="joblessUpdate_remark" name="remark" class="easyui-textbox" />
                    </div>
                    <div class="btn-link">
                        <a href="#" class="easyui-linkbutton btn-link" style="width:80px;height:30px;"  onclick="modifyJobess()">保存</a>
                    </div>                   
                </form>
            </div>
        </div>
        <div id="importJoblessInfo" class="easyui-window" title="导入失业人员数据" data-options="collapsible:false,minimizable:false,maximizable:false,resizable:false,closed:true" style="width:380px;height:260px;padding:10px;">
                <form id="uploadJoblessForm" method="post" enctype="multipart/form-data">
                     <div>
                         <br/>
                     </div>
                     <div>
                         <label>选择Excel文件：</label>
                         <input id="JoblessExcelFile" type="file" accept=".xls,.xlsx" class="" name="ExcelFile" />
                         <br/><br/>
                     </div>
                     <div>
                         <a href="sampleExcel/joblessImport.xls" >下载数据导入Excel模版</a>
                         <br/><br/>
                     </div>
                     <div class="btn-link">
                         <a href="#" class="easyui-linkbutton btn-link" style="width:60px;height:30px;"  onclick="()">上传</a>
                     </div>
                </form>
        </div>
    </div>
</body>
</html>
